package com.youlu.campus.admin.auth.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 用户管理 - 用户创建表单
 * Created by zhuhuaiqi
 */
public class UserCreateRequest {

    /**
     * 登录名
     */
    @NotNull
    @Length(min = 1, max = 16)
    private String loginName;

    /**
     * 密码
     */
    @NotEmpty
    private String encPwd;

    /**
     * 真实姓名
     */
    @Pattern(regexp = "[\u4e00-\u9fa5a-z0-9A-Z]{1,6}")
    private String realName;

    /**
     * 昵称
     */
    @Length(min = 1, max = 16)
    private String nickName;
    /**
     * 角色 1.管理员 2.客服 3.质检 4.开发人员
     */
    private String[] roleIds;

    /**
     * 角色ID
     */
    @NotNull
    private String roleId;

    /**
     * 最大接待量
     */
    private Integer maxVisitors;

    /**
     * 手机号
     */
    private String mobile;

    private String email;

    public UserCreateRequest() {
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getEncPwd() {
        return encPwd;
    }

    public void setEncPwd(String encPwd) {
        this.encPwd = encPwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String[] roleIds) {
        this.roleIds = roleIds;
    }

    public Integer getMaxVisitors() {
        return maxVisitors;
    }

    public void setMaxVisitors(Integer maxVisitors) {
        this.maxVisitors = maxVisitors;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
